# -*- coding: utf-8 -*-

from apps.common.base import BaseHandler
from apps.controller.public.alarm import AlarmListHandler
from apps.controller.public.device import (DeviceAddHandler,
                                           DeviceDashboardHandler,
                                           DeviceDelHandler, DeviceInfoHandler,
                                           DeviceListHandler)
from apps.controller.public.middleware import AlarmTypeHandler
from apps.controller.public.rpt import SystemhealthHandler
from apps.controller.public.ruaptcha import RuaptchaHandler
from apps.controller.public.user import (LoginHandler, LoginStateHandler,
                                         RegisterHandler,
                                         SendVerifyEmailHandler,
                                         SetPasswordHandler, TestSMS,
                                         UserInfoHandler, VerifyEmailHandler, RetrievePasswordHandler,
                                         ResetPasswordHandler)
from apps.websocket.sever import WebSocketSever

urls = [
    (r'/login/?', LoginHandler),
    (r'/reg/?', RegisterHandler),
    (r'/user/info/?', UserInfoHandler),
    (r'/login/state/?', LoginStateHandler),
    # (r'/reg/sendcaptcha/?', RegCaptchaHandler),
    (r'/user/set/password/?', SetPasswordHandler),
    (r'/user/send_verify_email/?', SendVerifyEmailHandler),
    (r'/user/verify_email/?', VerifyEmailHandler),
    (r'/user/retrieve_password/?', RetrievePasswordHandler),
    (r'/user/reset_password/?', ResetPasswordHandler),
    (r'/device/add/?', DeviceAddHandler),
    (r'/device/list/?', DeviceListHandler),
    (r'/device/info/?', DeviceInfoHandler),
    (r'/device/del/?', DeviceDelHandler),
    (r'/device/dashboard/?', DeviceDashboardHandler),
    (r'/systemhealth/?', SystemhealthHandler),
    (r'/middleware/alarm/type/?', AlarmTypeHandler),
    (r'/alarm/list/?', AlarmListHandler),
    (r'/test/sms/?', TestSMS),
    (r'/ruaptcha/?', RuaptchaHandler),
    (r"/websocket/?", WebSocketSever),
    (r'.*', BaseHandler)

]
